#ifndef CONTACTCONTROLLER_H
#define CONTACTCONTROLLER_H


#include "box2d/b2_world_callbacks.h"
#include "box2d/b2_contact.h"
#include <QDebug>
#include <string>
#include <QString>
#include <contactsignal.h>

using namespace std;

class ContactController:public b2ContactListener
{
public:
    ContactController(ContactSignal* signal);
    ///
    /// \brief 开始碰撞时的回调函数,每次碰撞发生时都会调用该函数
    /// \param contact 碰撞事件
    ///
    void BeginContact(b2Contact* contact) override;
private:
    ContactSignal* signal;

};
#endif // CONTACTCONTROLLER_H
